home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / FileBrowser / MyController.h < prev    next >
Encoding:
Text File  |  1995-04-12  |  1.3 KB  |  57 lines

  1. //        Written by Todd Thomas Copyright (c) 1995 by Todd Thomas.
  2. //                Version 1.0.  All rights reserved.
  3. //
  4. //        This notice may not be removed from this source code.
  5. //
  6. //    This object is included in the MiscKit by permission from the author
  7. //    and its use is governed by the MiscKit license, found in the file
  8. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  9. //    for a list of all applicable permissions and restrictions.
  10. //    
  11.  
  12. /**********************************************************************
  13.   CLASS:            MyController
  14.   
  15.   Simple controller class which both initializes the browser and is
  16.   it's delegate. It uses normal loading though that is not a good
  17.   choice for showing a filesystem.
  18.   
  19.  **********************************************************************/
  20.  
  21. #import <objc/Object.h>
  22.  
  23.  
  24. @interface MyController:Object
  25. {
  26.     id    browser;        // IB outlet to the browser
  27.     id  rootFile;        // root MiscFile for the browser
  28.     id  inspector;        // IB outlet to FileBrowser (when nib loaded)
  29. }
  30.  
  31. - init;
  32. - free;
  33. - updateDirectory: sender;
  34.  
  35. - showInspector: sender;
  36. - inspectFile: sender;
  37.  
  38. - duplicateFile: sender;
  39. - createSymLink: sender;
  40. - createHardLink: sender;
  41.  
  42. @end
  43.  
  44.  
  45. @interface MyController (NibInitialization)
  46.  
  47. - awakeFromNib;
  48.  
  49. @end
  50.  
  51.  
  52. @interface MyController (BrowserDelegate)
  53.  
  54. - (int)browser:sender fillMatrix:matrix inColumn:(int)column;
  55.  
  56. @end
  57.